package week3;

/**
 * Created by mc on 2017/3/11.
 */
public class test3 {
    public static void main(String[] arge) {
        int[] number = {70, 80, 31, 37, 10, 1, 48, 60, 33, 80};
        int a, b, c, d;
        for (a = 0; a < 9; a = a + 1) {
            for(b=0;b<9;b=b+1) {

                if (number[b] > number[b + 1]) {
                    c = number[b];
                    number[b] = number[b + 1];
                    number[b + 1] = c;
                }
            }

        }
        for(d=0;d<9;d=d+1){
            System.out.printf("%d,",number[d]);
        }
    }
}
